package com.clubs.coding.Controller;

import com.clubs.coding.Service.ClassifyLinkmanService;
import com.clubs.coding.Service.NewsService;
import com.clubs.coding.common.ApiRestResponse;
import com.clubs.coding.model.pojo.ClassifyLinkman;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
@RequestMapping("/ClassifyLinkman")
public class ClassifyLinkmanController {
@Autowired
    ClassifyLinkmanService classifyLinkmanService;
    @GetMapping("/linkman")
    public ApiRestResponse linkman(){
        ClassifyLinkman linkman = classifyLinkmanService.linkman();
        return ApiRestResponse.success(linkman);
    }
}
